class Solution {
public:
    bool halvesAreAlike(string s) {
        int a =s.length()/2;

        int yy=0;
        for(int i =0;i<a;i++)
        {
            if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'||
            s[i]=='U'||s[i]=='O'||s[i]=='I'||s[i]=='E'||s[i]=='A')
            yy++;
        }
        int aa=0;
        for(int i=a;i<s.length();i++)
        {
            
            if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'||
            s[i]=='U'||s[i]=='O'||s[i]=='I'||s[i]=='E'||s[i]=='A')
            aa++;
        }
        if(aa==yy)
        {
            return true;
        }
        return false;

    }
};class Solution {
public:
    bool halvesAreAlike(string s) {
        int a =s.length()/2;

        int yy=0;
        for(int i =0;i<a;i++)
        {
            if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'||
            s[i]=='U'||s[i]=='O'||s[i]=='I'||s[i]=='E'||s[i]=='A')
            yy++;
        }
        int aa=0;
        for(int i=a;i<s.length();i++)
        {
            
            if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'||
            s[i]=='U'||s[i]=='O'||s[i]=='I'||s[i]=='E'||s[i]=='A')
            aa++;
        }
        if(aa==yy)
        {
            return true;
        }
        return false;

    }
};